rem load remote configuration settings
call "%~sdp0Version.bat"
call "%~sdp0Source.bat"
call "%~sdp0Constant.bat"

rem set constants
set DEVENVEXEFILE=C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.com
set PUBLISHPATH=%TEMP%\Publish\CloudFilesUpload\%MAJOR%.%MINOR%.%REVISION%
set BACKUPASSEMBLYINFO=%TEMP%\CloudFilesUploadAssemblyInfo.cs.backup
set HGTEMPFILE=%TEMP%\CloudFilesUpload.%MAJOR%.%MINOR%.%REVISION%.tmp
set PUBLISHZIPFILE=%TEMP%\Publish\CloudFiles\%MAJOR%.%MINOR%.%REVISION%\CloudFilesUpload.zip

rem replace settings with machine specific values
if exist "%~sdp0Configuration.%COMPUTERNAME%.bat" call "%~sdp0Configuration.%COMPUTERNAME%.bat"

rem exit if an error occured
if %ERRORLEVEL% NEQ 0 exit 1